# encoding=utf-8
# author:梁子龙
from comment.utils.Serializer import BaseListSerializer


class ArticleList(BaseListSerializer):
    """用户信息序列化"""

    def to_dict(self):
        lst = []

        for obj in self.data_list:
            lst.append(
                {
                    'id': obj.id,
                    "article_title": obj.article_title,
                    "article_content": obj.article_content,
                }
            )
        return lst
